﻿@model INNOVACALL.Framework.Common.Models.MetaModels.LayoutMenuElement_MetaModel
<li>
	@if (Model.SousMenus.Count > 0)
 {
		<span>@Model.Name</span>
		<ul>
			@foreach (var sousMenu in Model.SousMenus)
   {
				@Html.Partial("_MenuElement", sousMenu)
   }
		</ul>
 }
 else
 { 
		@Html.ActionLink(
		Model.Name,
		Model.DefaultAction,
		Model.Controller,
		null,
		(
			!string.IsNullOrEmpty(Model.ClasseCss)
			?
			new { @class = Model.ClasseCss } :
			null
		)
	)
 }
</li>
